<template>
  <span @click="toTop"><i class="icon-huidaodingbu iconfont"></i></span>
</template>

<script>
export default {
  name: 'AppBackToTop',
  setup () {
    const toTop = () => {
      window.scroll(0, 0)
    }
    return {
      toTop
    }
  }
}
</script>

<style scoped lang='less'>
span {
  color: var(--color-tint);
  position: fixed;
  right: 20px;
  bottom: 80px;
  .icon-huidaodingbu {
    z-index: 99;
    font-size: 30px;
  }
}
</style>
